home *** CD-ROM | disk | FTP | other *** search
- package minesweeper;
-
- import java.util.Timer;
- import javax.microedition.lcdui.Command;
- import javax.microedition.lcdui.CommandListener;
- import javax.microedition.lcdui.Display;
- import javax.microedition.lcdui.Displayable;
- import javax.microedition.lcdui.Form;
- import javax.microedition.midlet.MIDlet;
-
- public class MinesweeperMidlet extends MIDlet implements CommandListener {
- // $FF: renamed from: a minesweeper.MinesweeperMidlet
- private static MinesweeperMidlet field_0 = null;
- // $FF: renamed from: b b
- public b field_1;
- // $FF: renamed from: c c
- public c field_2;
- // $FF: renamed from: d java.util.Timer
- public Timer field_3;
-
- public MinesweeperMidlet() {
- field_0 = this;
- }
-
- public void commandAction(Command var1, Displayable var2) {
- this.field_1 = new b(this);
- this.field_2 = new c(this.field_1);
- this.field_3 = new Timer();
- this.field_3.schedule(this.field_2, 1000L, 1000L);
- Display.getDisplay(this).setCurrent(this.field_1);
- }
-
- public void destroyApp(boolean var1) {
- }
-
- public void pauseApp() {
- }
-
- // $FF: renamed from: a () void
- public static void method_0() {
- field_0.destroyApp(true);
- field_0.notifyDestroyed();
- field_0 = null;
- }
-
- // $FF: renamed from: b () void
- public static void method_1() {
- field_0.startApp();
- }
-
- public void startApp() {
- Form var1 = new Form("Minesweeper");
- Command var2 = new Command("Proceed", 4, 1);
- var1.append("By Francois Martin\n");
- var1.append("Copyright 2001\n");
- var1.append("Version 0.2\n");
- ((Displayable)var1).setCommandListener(this);
- ((Displayable)var1).addCommand(var2);
- Display.getDisplay(this).setCurrent(var1);
- }
- }
-